package cn.ava.basic.constant;

public class BaseConstants {

    // 短信类常量字段
    public class SmsConstant {
        // 发送短信UID名称
        public static final String SMS_UID = "avavaava";
        // 短信接口密钥KEY
        public static final String SMS_KEY = "2A37CEA1C7716EB61C6BC1CE6A184F22";

    }

    public class VerifyShopSettlement{
        /**
         * 正则表达式：验证手机号
         */
        public static final String REGEX_MOBILE = "^((13[0-9])|(15[^4,\\D])|(16[0-9])|(18[0-9])|(17[0-9]))\\d{8}$";
        /**
         * 正则表达式：验证邮箱
         */
        public static final String REGEX_EMAIL = "^[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$";

        // 图片URL路径
        public static final String FASTDFS_IMAGE = "http://123.207.27.208";
    }


    // 用户相关的常量类
    public class VerifyCodeConstant {

        // 注册业务相关常量
        public static final String BUSINESS_REGISTER_KEY = "register:";

        // 微信绑定常量
        public static final String BUSINESS_BINDER_KEY = "binder:";

        // 登录业务相关常量
        public static final String BUSINESS_LOGIN_KEY = "login:";



    }

    // 微信相关的常量类
    public class WeChatConstant {

        // 获取access_token的URL地址
        public static final String WECHART_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WECHART_USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

        // 微信的appId
        public static final String WECHART_APPID = "wxd853562a0548a7d0";

        // 微信的密钥
        public static final String WECHART_SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

    }


}
